
import { Module, forwardRef } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AlbumModule } from '../album/album.module';
import { SongModule } from '../song/song.module';
import { ArtistController } from './artist.controller';
import { ArtistService } from './artist.service';
import { DArtist } from './dao/artist.dao';
import { Artist } from './entities/artist.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([Artist]),
    // SongModule,
    AlbumModule,
    forwardRef(() => SongModule),
    // forwardRef(() => AlbumModule)
  ],
  controllers: [ArtistController],
  providers: [ArtistService,DArtist],
  exports:[ArtistService]
})
export class ArtistModule { }
